From: BenoƮt Minisini Date: Sat, 13 Dec 2025 21:03:16 +0000 (+0100) Subject: Make 'gb.pdf' compile with poppler 25.12.0. X-Git-Tag: archive/raspbian/3.20.4-2+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=e0cbf70b096909d86f55142aed77168f501c2f92;p=gambas3.git Make 'gb.pdf' compile with poppler 25.12.0. [GB.PDF] * BUG: Make 'gb.pdf' compile with poppler 25.12.0. Origin: https://gitlab.com/gambas/gambas/-/commit/976e7a42f651ebcccc5e6835329889df60a03ed1 Gbp-Pq: Name Make-gb.pdf-compile-with-poppler-25.12.0.patch --- diff --git a/gb.pdf/configure.ac b/gb.pdf/configure.ac index aabf3f2e..0ed70ba9 100644 --- a/gb.pdf/configure.ac +++ b/gb.pdf/configure.ac @@ -44,6 +44,8 @@ if test "$have_poppler" = "yes"; then AC_DEFINE_UNQUOTED(POPPLER_VERSION_24_12_0, $((1-$?)), Poppler version >= 24.12.0) $PKG_CONFIG --atleast-version=25.01.0 poppler AC_DEFINE_UNQUOTED(POPPLER_VERSION_25_01_0, $((1-$?)), Poppler version >= 25.01.0) + $PKG_CONFIG --atleast-version=25.12.0 poppler + AC_DEFINE_UNQUOTED(POPPLER_VERSION_25_12_0, $((1-$?)), Poppler version >= 25.12.0) fi AC_CONFIG_FILES([\ diff --git a/gb.pdf/src/CPdfDocument.cpp b/gb.pdf/src/CPdfDocument.cpp index 176284f1..b08e5528 100644 --- a/gb.pdf/src/CPdfDocument.cpp +++ b/gb.pdf/src/CPdfDocument.cpp @@ -56,6 +56,10 @@ #include "UTF.h" #endif +#if POPPLER_VERSION_25_12_0 +#define getLength size +#endif + /***************************************************************************/ static CPDFRECT *create_rect(void)